package com.jic.market.service;

import com.jic.market.entity.PatchGrouponDetailEntity;
import com.jic.market.request.PatchGrouponInstDetailRequest;
import com.jic.market.request.PatchGrouponInstRequest;
import com.jic.market.response.PageResponse;
import com.jic.market.response.PatchGrouponInstDetailResponse;
import com.jic.market.response.PatchGrouponInstResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author guohuayong
 * @date: 2020年01月21日
 */
public interface PatchGrouponInstDetailService {
    PageResponse<PatchGrouponInstDetailResponse> query(PatchGrouponInstDetailRequest t);

    /**
     * 根据条件查询拼团实例详情
     * @param detailEntityCondition
     * @return
     */
    PatchGrouponDetailEntity queryEntity(PatchGrouponDetailEntity detailEntityCondition);

    /**
     * 根据条件查询拼团实例详情列表
     * @param detailEntityCondition
     * @return
     */
    List<PatchGrouponDetailEntity> findAll(PatchGrouponDetailEntity detailEntityCondition);

    /**
     * 添加实例详情记录
     * @param detailEntity
     * @return
     */
    Integer addDetailEntity(PatchGrouponDetailEntity detailEntity);

    /**
     * 更新拼团实例详情
     * @param detailEntity
     * @return
     */
    Integer updateEntity(PatchGrouponDetailEntity detailEntity);

}
